#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int main()
{
    int n;
    scanf("%d", &n);
    int arr[100];
    int i = 0;
    if (1 <= n && n <= 10)
    {
        for (i = 0; i < n; i++)
        {
            scanf("%d", &arr[i]);
        }
        double sum = 0;
        for (i = 0; i < n; i++)
        {
            sum += arr[i];
        }
        double s = sum / n;
        printf("%.2lf\n", s);
        for (i = 0; i < n; i++)
        {
            if (arr[i] > s)
            {
                printf("%d ", arr[i]);
            }
        }
        printf("\n");
    }
    else
        printf("Invalid.");
}